home *** CD-ROM | disk | FTP | other *** search
- // Borland C++ Builder
- // Copyright (c) 1995, 1998 by Borland International
- // All rights reserved
-
- // (DO NOT EDIT: machine generated header) 'AHMTOnlyOne.pas' rev: 3.00
-
- #ifndef AHMTOnlyOneHPP
- #define AHMTOnlyOneHPP
- #include <AHMSystem.hpp>
- #include <Forms.hpp>
- #include <Classes.hpp>
- #include <Messages.hpp>
- #include <SysUtils.hpp>
- #include <Windows.hpp>
- #include <SysInit.hpp>
- #include <System.hpp>
-
- //-- user supplied -----------------------------------------------------------
-
- namespace Ahmtonlyone
- {
- //-- type declarations -------------------------------------------------------
- typedef void __fastcall (__closure *TAHMOnExceeded)(System::TObject* Sender, int NoOfInstances);
-
- enum TAHMAction { aRestoreAndExit, aRestore, aExit, aNone };
-
- class DELPHICLASS EAHMDuplicateError;
- class PASCALIMPLEMENTATION EAHMDuplicateError : public Sysutils::Exception
- {
- typedef Sysutils::Exception inherited;
-
- public:
- /* Exception.Create */ __fastcall EAHMDuplicateError(const System::AnsiString Msg) : Sysutils::Exception(
- Msg) { }
- /* Exception.CreateFmt */ __fastcall EAHMDuplicateError(const System::AnsiString Msg, const System::TVarRec
- * Args, const int Args_Size) : Sysutils::Exception(Msg, Args, Args_Size) { }
- /* Exception.CreateRes */ __fastcall EAHMDuplicateError(int Ident, Extended Dummy) : Sysutils::Exception(
- Ident, Dummy) { }
- /* Exception.CreateResFmt */ __fastcall EAHMDuplicateError(int Ident, const System::TVarRec * Args,
- const int Args_Size) : Sysutils::Exception(Ident, Args, Args_Size) { }
- /* Exception.CreateHelp */ __fastcall EAHMDuplicateError(const System::AnsiString Msg, int AHelpContext
- ) : Sysutils::Exception(Msg, AHelpContext) { }
- /* Exception.CreateFmtHelp */ __fastcall EAHMDuplicateError(const System::AnsiString Msg, const System::TVarRec
- * Args, const int Args_Size, int AHelpContext) : Sysutils::Exception(Msg, Args, Args_Size, AHelpContext
- ) { }
- /* Exception.CreateResHelp */ __fastcall EAHMDuplicateError(int Ident, int AHelpContext) : Sysutils::
- Exception(Ident, AHelpContext) { }
- /* Exception.CreateResFmtHelp */ __fastcall EAHMDuplicateError(int Ident, const System::TVarRec * Args
- , const int Args_Size, int AHelpContext) : Sysutils::Exception(Ident, Args, Args_Size, AHelpContext
- ) { }
-
- public:
- /* TObject.Destroy */ __fastcall virtual ~EAHMDuplicateError(void) { }
-
- };
-
- class DELPHICLASS TAHMOnlyOne;
- class PASCALIMPLEMENTATION TAHMOnlyOne : public Ahmsystem::TAHMSystemsComponent
- {
- typedef Ahmsystem::TAHMSystemsComponent inherited;
-
- private:
- Byte FInstances;
- TAHMAction FOnExceed;
- TAHMOnExceeded FOnExceeded;
-
- protected:
- void __fastcall CheckPrevInstances(void);
-
- public:
- __fastcall virtual TAHMOnlyOne(Classes::TComponent* AOwner);
- virtual void __fastcall Loaded(void);
- __fastcall virtual ~TAHMOnlyOne(void);
-
- __published:
- __property About ;
- __property Byte Instances = {read=FInstances, write=FInstances, default=1};
- __property TAHMAction OnExceed = {read=FOnExceed, write=FOnExceed, default=0};
- __property TAHMOnExceeded OnExceeded = {read=FOnExceeded, write=FOnExceeded};
- };
-
- //-- var, const, procedure ---------------------------------------------------
-
- } /* namespace Ahmtonlyone */
- #if !defined(NO_IMPLICIT_NAMESPACE_USE)
- using namespace Ahmtonlyone;
- #endif
- //-- end unit ----------------------------------------------------------------
- #endif // AHMTOnlyOne
-